Skip to content
This repository has been archived by the owner on Oct 23, 2020. It is now read-only.

Add partial RSA prototype #4

Merged
merged 1 commit into from
Aug 12, 2019
Merged

Conversation

tniessen
Copy link
Member

This adds basic support for RSASSA-PKCS1-v1_5 (section 20) and RSA-PSS (section 21). Like all the other code, it is just a prototype, and will need a lot of refining, but most things should work.

Fixes: #2
Fixes: #3

@tniessen tniessen added the new algorithm Issues and PRs about new algorithms label Aug 10, 2019
lib/algorithms/rsa.js Show resolved Hide resolved
lib/algorithms/rsa.js Show resolved Hide resolved
Copy link

@sam-github sam-github left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you aren't going to throw an op-error, then add an assert on the expected input lenght. Other than that, RSLGTM.

@tniessen tniessen merged commit d38cd25 into nodejs:master Aug 12, 2019
@tniessen tniessen deleted the add-rsa-prototype branch August 12, 2019 22:16
@tniessen tniessen added this to the Standard algorithms milestone Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
new algorithm Issues and PRs about new algorithms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for RSA-PSS Add support for RSA-PKCS1-v1_5
2 participants